<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("ctx", path);
	request.setAttribute("ctx", path);
%>

<!DOCTYPE html>
<html>
<head>
<title>首页</title>
<script src="${ctx }/js/jquery.min.js"></script>
<script src="${ctx }/js/bootstrap.min.js"></script>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">


<!-- Bootstrap -->
<link href="${ctx }/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript">
	$(function() {
		$("#myModal").modal("show");

	});
</script>
</head>
<body>

	<div class="modal fade" tabindex="-1" role="dialog" id="myModal">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title">文档管理系统</h4>
				</div>
				<form action="${ctx }/loginUser" method="post">
					<div class="modal-body">
						<div class="form-group">
							<font color="red" id="errMsg">${error }</font>
						</div>
						<div class="form-group">
							<label class="control-label" for="userName">账号名称:</label> <input type="text" class="form-control" name="account" id="userName" value="${param.account }" aria-describedby="inputSuccess2Status">
						</div>
						<div class="form-group ">
							<label class="control-label" for="password">密码:</label> 
							<input type="password" class="form-control" name="password" id="password" value="${param.password }" aria-describedby="inputSuccess2Status"/>
						</div>
					</div>
					<div class="modal-footer">
						<button type="submit" class="btn btn-primary btn-md btn-block" id="login">登录</button>
					</div>
				</form>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
	</div>
	<!-- /.modal -->
</body>
<script type="text/javascript">
$(function(){
	var addNewFolderForm = document.getElementById("addNewFolderForm");
	if(addNewFolderForm){
		window.location.reload();
	} 
});

</script>
</html>
